package mest.service.hws.impl;


import com.alibaba.fastjson.JSON;
import mest.dao.hws.plan_productjob_workfinish_workMapper;
import mest.entity.plan_productjob_workfinish_work;
import mest.service.hws.plan_productjob_workfinish_workService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/*
* s数据流完工内下的工序
* */
@Service
public class plan_productjob_workfinish_workServiceimpl implements plan_productjob_workfinish_workService {

    @Resource
    private plan_productjob_workfinish_workMapper plan_productjob_workfinish_workMapper;

    @Override
    //新增
    public int insert(String theirDb,
                                            List<Map<String, Object>> record) {
        /*/insertModel /delModel /updateByone*/
        System.out.println("进入增删改方法");
        int count ;
        Map<String, Object> map = new HashMap<String, Object>();
        try {
               /* map.put("code", 0);
                map.put("msg", "操作成功");
                map.put("count", plan_productjob_workfinish_workMapper.insert(record));*/
            count = plan_productjob_workfinish_workMapper.insert(theirDb,record);

        }catch (Exception e){
            count = 0;
        }    
        return count;
    }
}
